import ListView, {AbsAdapter} from "./ListView";
const ListAdapter = require('./ListAdapter');
cc.Class({
    extends: cc.Component,

    properties: {
   

        listView: {
            default: null,
            type: ListView
        },

        tipLabel: {
            type: cc.Label,
            default: null
        }
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {
        const adapter = new ListAdapter();
        let data = [];
        for (let index = 0; index < 100; index++) {
            data.push(index);
        }
        adapter.setDataSet(data);
        this.listView.setAdapter(adapter);
    },

    // update (dt) {},
});
